package com.ruoyi.project.system.device.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 my_device
 *
 * @author ruoyi
 * @date 2024-06-30
 */
public class MyDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备id */
    private Long id;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String name;

    /** 设备串口 */
    @Excel(name = "设备串口")
    private String serialPort;

    /** 比特率 */
    @Excel(name = "比特率")
    private Long bitRate;

    /** 设备运行状态（1已停止 2正在运行） */
    @Excel(name = "设备运行状态", readConverterExp = "1=已停止,2=正在运行")
    private Integer state;

    /** 设备运行时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "设备运行时间", width = 30, dateFormat = "yyyy-MM-dd")
    private String runTime;

    @Excel(name = "GCMS真空度")
    private String p1Now;

    @Excel(name = "样品仓真空度")
    private String p2Now;

    @Excel(name = "样品仓当前温度h1")
    private String cangtiH11Now;

    @Excel(name = "样品仓当前温度h2")
    private String cangtiH12Now;

    @Excel(name = "捕集阱温度值")
    private String bujijingT3Now;

    @Excel(name = "捕集阱前温度值")
    private String bujijingT41Now;

    @Excel(name = "捕集阱后温度值")
    private String bujijingT42Now;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    @ApiModelProperty("设备明细")
    private MyDeviceDetails deviceDetails;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    public void setSerialPort(String serialPort)
    {
        this.serialPort = serialPort;
    }

    public String getSerialPort()
    {
        return serialPort;
    }

    public void setBitRate(Long bitRate)
    {
        this.bitRate = bitRate;
    }

    public Long getBitRate()
    {
        return bitRate;
    }

    public void setState(Integer state)
    {
        this.state = state;
    }

    public Integer getState()
    {
        return state;
    }

    public String getRunTime() {
        return runTime;
    }

    public void setRunTime(String runTime) {
        this.runTime = runTime;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public MyDeviceDetails getDeviceDetails() {
        return deviceDetails;
    }

    public void setDeviceDetails(MyDeviceDetails deviceDetails) {
        this.deviceDetails = deviceDetails;
    }

    public String getP1Now() {
        return p1Now;
    }

    public void setP1Now(String p1Now) {
        this.p1Now = p1Now;
    }

    public String getP2Now() {
        return p2Now;
    }

    public void setP2Now(String p2Now) {
        this.p2Now = p2Now;
    }

    public String getCangtiH11Now() {
        return cangtiH11Now;
    }

    public void setCangtiH11Now(String cangtiH11Now) {
        this.cangtiH11Now = cangtiH11Now;
    }

    public String getCangtiH12Now() {
        return cangtiH12Now;
    }

    public void setCangtiH12Now(String cangtiH12Now) {
        this.cangtiH12Now = cangtiH12Now;
    }

    public String getBujijingT3Now() {
        return bujijingT3Now;
    }

    public void setBujijingT3Now(String bujijingT3Now) {
        this.bujijingT3Now = bujijingT3Now;
    }

    public String getBujijingT41Now() {
        return bujijingT41Now;
    }

    public void setBujijingT41Now(String bujijingT41Now) {
        this.bujijingT41Now = bujijingT41Now;
    }

    public String getBujijingT42Now() {
        return bujijingT42Now;
    }

    public void setBujijingT42Now(String bujijingT42Now) {
        this.bujijingT42Now = bujijingT42Now;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("serialPort", getSerialPort())
                .append("bitRate", getBitRate())
                .append("state", getState())
                .append("runTime", getRunTime())
                .append("p1Now", getP1Now())
                .append("p2Now", getP2Now())
                .append("cangtiH11Now", getCangtiH11Now())
                .append("cangtiH12Now", getCangtiH12Now())
                .append("bujijingT3Now", getBujijingT3Now())
                .append("bujijingT41Now", getBujijingT41Now())
                .append("bujijingT42Now", getBujijingT42Now())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
